<template>
  <div class="plan-list">
    <el-empty v-if="planStore.planList.length === 0" />

    <el-scrollbar v-else>
      <plan-card  v-for="(item, index) in planStore.planList"
                  :key="index" :plan="item">
      </plan-card>
    </el-scrollbar>
  </div>
</template>

<script lang="ts" setup>
import PlanCard from '@/components/Plan/PlanCard.vue'
import { usePlanStore } from '@/store/plan.ts'

const planStore = usePlanStore()
</script>
